package br.ufal.tci.nexos.arcolive.persistence;

import java.util.ArrayList;

public class GenericResultRow {

	private ArrayList values;
	
	public GenericResultRow() {
		this.values = new ArrayList();
	}
	
	public void put(String value) {
		if (value != null) {
			this.values.add(value);
		}
	}
	
	public String get(int key) {
		try {
			return (String) this.values.get(key);
		} catch (Exception e) {
			return "";
		}
	}
	
	public int getColumnsCount() {
		return this.values.size();
	}
	
}
